package com.mini.rpc.common;

public class RpcServiceHelper {

    /**
     * 将 ServiceInstance 的名称 name 根据服务名称和服务版本进行赋值
     */
    public static String buildServiceKey(String serviceName, String serviceVersion) {
        return String.join("#", serviceName, serviceVersion);
    }

    public static String buildServiceKeyWith_(String serviceName, String serviceVersion) {
        return String.join("_", serviceName, serviceVersion);
    }
}
